﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KYO.DAL;

public partial class Admin_Controls_Mod_Contact_Contact : UserControl ,IView<Contact>
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    #region IView<Contact> Members

    public void UpdateView(Contact o)
    {
        string content =string.Empty;
        content += "<b>" +o.Title+" </b><br/><hr/>";
       
        content +=   o.FullName + " <br/>";
        content +=   o.Company + " <br/>";
        content +=   o.Address + " <br/>";
        content +=   o.Telephone + " <br/>";
        content +=   o.Fax + " <br/>";
        content +=   o.Email + " <br/><hr/>";
        content +=   o.Content + " <br/>";
        lb_contact.InnerHtml = content;

    }

    public Contact UpdateModel(Contact o)
    {
        throw new NotImplementedException();
    }

    #endregion
}
